package com.aaa.dao;

import com.aaa.pojo.PersonUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PersonUserDao {
    public List<PersonUser> selectPersonal();
    public PersonUser selectPerUserByPid(@Param("pid") Integer pid);
    public Boolean updatePersonal(@Param("pid") Integer pid, @Param("username") String username, @Param("pname") String pname,@Param("phone") Long phone,@Param("email") String email);
    public Boolean deletePersonal(@Param("pid") Integer pid);
    public Boolean updateUser(@Param("uid")Integer uid);
    public PersonUser selectByUid(@Param("uid") Integer uid);
    public Integer selectPwdByUid(Integer uid);
}
